package pojo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Customer {
	public  int id;
	private String name;
	private Date birth;
	private boolean sex;
	private String email;
	public Customer(){
		
	}
	




	@Override
	public String toString() {
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
		return "[id=" + id + ", name=" + name + ", birth=" + format.format(birth)
				+ ", sex=" + sex + ", email=" + email + "]";
	}





	/**
	 * @param id
	 * @param name
	 * @param birth
	 * @param sex
	 * @param email
	 */
	public Customer(int id, String name, Date birth, boolean sex, String email) {
		super();
		this.id = id;
		this.name = name;
		this.birth = birth;
		this.sex = sex;
		this.email = email;
	}





	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public boolean isSex() {
		return sex;
	}
	public void setSex(boolean sex) {
		this.sex = sex;
	}
	public Date getBirth() {
		return birth;
	}
	public void setBirth(Date birth) {
		this.birth = birth;
	}
	
	
}
